/*
Wav File Writer Filter for Windows Mobile
Copyright (C) 2008 syu5.
*/


#include "stdafx.h"
#include "WavWriter.h"

const LPSTR CWavWriter::s_RIFF = "RIFF";
const LPSTR CWavWriter::s_WAVE = "WAVE";
const LPSTR CWavWriter::s_fmt  = "fmt ";
const LPSTR CWavWriter::s_data = "data";

extern "C" {
    BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
};

CFactoryTemplate g_Templates [] = {
    { FILTER_NAME , &__uuidof(CWavWriter),
    CWavWriter::CreateInstance, NULL, &afFilterInfo }
};

int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);

STDAPI DllRegisterServer() {
    return AMovieDllRegisterServer2(TRUE);
}

STDAPI DllUnregisterServer() {
    return AMovieDllRegisterServer2(FALSE);
}

BOOL APIENTRY DllMain(HANDLE hModule, DWORD  dwReason, LPVOID lpReserved) {
    return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
}
